package org.example.dto.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.dto.entity.OperationLogs;

@Mapper
public interface OpertionLogsMapper extends BaseMapper<OperationLogs> {
    // 查询 messageId 是否已存在
    @Select("SELECT COUNT(1) FROM operation_logs WHERE message_id = #{messageId}")
    Integer selectCountByMessageId(String messageId);
}
